import { get } from "../utils/request";

const api = {
    // 自动登录
    login(params) {
        return get("/login/cellphone",params);
    },
    //获取推荐歌单
    getMusicList(params) {
        return get("/personalized",params);
    },
    //获取推荐歌曲
    getSongs(params) {
        return get("/personalized/newsong",params);
    },
    //播放接口
    getPlayer(params) {
        return get("/song/url",params)
    },

    //获取歌词
    getLyric(params) {
        return get("/lyric",params)
    },

    //获取榜单
    getTopList() {
        return get("/toplist")
    },
    //获取详细排行榜
    _getTopList(params) {
        return get("/playlist/detail",params)
    },
    //搜索
    getResult(params) {
        return get("/search",params)
    },
    //获取用户信息
    getUserInfo(params) {
        return get("/user/detail",params)
    },
    //获取用户歌单
    getUserSongs(params) {
        return get("/user/playlist",params)
    }
}

export default api;